package com.we.wecc.bg.mid.model.in;

import com.we.wecc.aw.db.model.AwardProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "添加奖品-入")
public class AwardProductIn {
    @ApiModelProperty("id,修改时必传")
    private int id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("价格")
    private double price;

    @ApiModelProperty("图片")
    private String image;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public AwardProduct toAwardProduct(){
        AwardProduct ap = new AwardProduct();
        BeanUtils.copyProperties(this,ap);
        return ap;
    }
}
